module.exports = function (api) {
    api.cache(true);

    const presets = [
        [
			"@babel/env",//全写@babel/preset-env
			{
			  "targets": {
				"ie":"10",
				"edge": "17",
				"firefox": "60",
				"chrome": "67",
				"safari": "11.1"
              },
              //按需引入polyfill
			  "useBuiltIns": "usage"
			}
		]
		//yarn add @vue/babel-preset-jsx @vue/babel-helper-vue-jsx-merge-props
		,'@vue/babel-preset-jsx'
    ];
    const plugins = [];

    return {
        presets,
        plugins
    }
}